package com.iflytek.universitymanagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iflytek.universitymanagement.domain.Course;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CourseMapper extends BaseMapper<Course> {
    // 这里可以添加自定义查询方法，如果需要的话


    // 通过课程ID查询课程名称
    @Select("SELECT course_name FROM course WHERE course_id = #{courseId}")
    String findCourseNameById(int courseId);
}
